package com.jkt.rms.validator;


import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import com.jkt.rms.commons.utils.EqualityUtils;
import com.jkt.rms.vo.UsersVO;
import com.jkt.rms.vo.VendorVO;

public class ForgotPasswordValidator implements Validator {
	
	@Override
	public boolean supports(Class clazz) {
		return clazz.equals(UsersVO.class);
		
	}
	
	public void validate(Object obj, Errors errors) {
		ValidationUtils.rejectIfEmptyOrWhitespace(errors, "username","error.userName.required", new String[]{"User Name"});
		 
	}
}
